package com.yunang.oa.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("oa_task")
public class OaTask {
    @TableId(type = IdType.AUTO)
    private Long taskId;            //任务ID

    @TableField("task_name")         //任务名称
    private String taskName;

    @TableField("task_content")      //任务内容
    private String taskContent;

    @TableField("reason")            //原因
    private String reason;

    @TableField("start_time")        //任务开始时间
    private String startTime;

    @TableField("closing_time")     //任务截止时间
    private String closingTime;

    @TableField("task_mover")        //任务发起人
    private Long taskMover;

    @TableField("task_receiver")    //任务接收人
    private Long taskReceiver;

    @TableField("task_status")      //任务状态
    private Integer taskStatus;

    @TableField("place")            //任务地点
    private String place;

    @TableField("type")      //会议类型
    private Integer type;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")      //创建时间
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")      //更新时间
    private Date updateTime;

    @TableField("is_deleted")       //逻辑删除
    @TableLogic
    private Integer isDeleted;
}
